Skip to content

feat(cdk-mintd): move remote signatory config into its own section#2141

Open
prusnak wants to merge 3 commits into
cashubtc:mainfrom
prusnak:cdk-mintd-explicit-insecure-signatory
Open

feat(cdk-mintd): move remote signatory config into its own section#2141
prusnak wants to merge 3 commits into
cashubtc:mainfrom
prusnak:cdk-mintd-explicit-insecure-signatory

Conversation

@prusnak

@prusnak prusnak commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Replace the old [info] signatory URL/certs fields with a dedicated [signatory] section using addr, port, tls_dir, and allow_insecure - copying the config layout for mint_management_rpc / grpc_processor.

Require an explicit allow_insecure=true when connecting to a remote signatory without TLS, and update the signatory client constructor to build its endpoint from addr/port. Update env vars, example config, and integration fixtures to use the new shape.

Add README.md to cdk-signatory.

@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.04918% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.65%. Comparing base (baa68c5) to head (bc73aea).

Files with missing lines Patch % Lines
crates/cdk-mintd/src/lib.rs 63.33% 11 Missing ⚠️
...s/cdk-integration-tests/src/bin/start_fake_mint.rs 0.00% 7 Missing ⚠️
crates/cdk-mintd/src/config.rs 80.00% 5 Missing ⚠️
crates/cdk-signatory/src/proto/client.rs 0.00% 3 Missing ⚠️
crates/cdk-integration-tests/src/shared.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2141      +/-   ##
==========================================
+ Coverage   71.63%   71.65%   +0.02%     
==========================================
  Files         356      357       +1     
  Lines       74794    74876      +82     
==========================================
+ Hits        53576    53655      +79     
- Misses      21218    21221       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@prusnak prusnak force-pushed the cdk-mintd-explicit-insecure-signatory branch from 4b27fcd to b75faac Compare June 23, 2026 09:41

@cdk-bot cdk-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified findings approved for disclosure:

  • Empty [signatory] section in example config enables remote signatory and breaks startup (medium) - Operators following the documented copy-and-edit example config path can no longer start a mint with a local seed/mnemonic; the mint enters remote-signatory mode and bails during startup.

Comment thread crates/cdk-mintd/example.config.toml
@prusnak prusnak force-pushed the cdk-mintd-explicit-insecure-signatory branch from b75faac to ddd8fcc Compare June 28, 2026 10:46

@cdk-bot cdk-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified findings approved for disclosure:

  • SignatoryRpcClient URL construction breaks IPv6 addresses (low) - IPv6 signatory addresses configured as ordinary address literals fail URL parsing, regressing remote signatory connectivity for IPv6 deployments.
    Unanchored locations included in summary:
    • crates/cdk-signatory/src/proto/client.rs:54
  • Deprecated signatory config keys are silently ignored, allowing fallback to local signing (low) - Upgraded deployments with old signatory config keys and a local seed/mnemonic can silently stop using the remote signatory and fall back to local signing.
    Unanchored locations included in summary:
    • crates/cdk-mintd/src/config.rs:47

Comment thread crates/cdk-mintd/src/lib.rs Outdated
prusnak added 2 commits June 29, 2026 23:38
Replace the old [info] signatory URL/certs fields with a dedicated
[signatory] section using addr, port, tls_dir, and allow_insecure.

Require an explicit allow_insecure=true when connecting to a remote signatory
without TLS, and update the signatory client constructor to build its endpoint
from addr/port. Update env vars, example config, and integration fixtures to
use the new shape.
@prusnak prusnak force-pushed the cdk-mintd-explicit-insecure-signatory branch from ddd8fcc to e355963 Compare June 29, 2026 21:38
…dress

but keep compatibility with old shorter name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants